home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / handson / Java / sc20form.jar / com / supercede / forms / SuperCedeInvalidStateException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-01-28  |  1.2 KB  |  29 lines

  1. package com.supercede.forms;
  2.  
  3. public class SuperCedeInvalidStateException extends Exception {
  4.    private Throwable original;
  5.    private static final long serialVersionUID = 1013082004010516619L;
  6.    private static final int _version = 1;
  7.    private int version = 1;
  8.  
  9.    protected SuperCedeInvalidStateException() {
  10.    }
  11.  
  12.    public SuperCedeInvalidStateException(Throwable var1) {
  13.       this.original = var1;
  14.    }
  15.  
  16.    public SuperCedeInvalidStateException(Throwable var1, String var2) {
  17.       super(var2);
  18.       this.original = var1;
  19.    }
  20.  
  21.    public Throwable getTargetException() {
  22.       return this.original;
  23.    }
  24.  
  25.    public String toString() {
  26.       return super.toString() + "\n" + "Original exception" + ": " + this.original;
  27.    }
  28. }
  29.